summaryrefslogtreecommitdiffstats
path: root/kiberpipa/ot/ont/prevajanje.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kiberpipa/ot/ont/prevajanje.txt')
-rw-r--r--kiberpipa/ot/ont/prevajanje.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/kiberpipa/ot/ont/prevajanje.txt b/kiberpipa/ot/ont/prevajanje.txt
new file mode 100644
index 0000000..2a35135
--- /dev/null
+++ b/kiberpipa/ot/ont/prevajanje.txt
@@ -0,0 +1,15 @@
+PATH=$PATH:/opt/toolchains/stbgcc-8.3-0.4/bin
+zlib:
+CC=mips-linux-gcc LDFLAGS="-static --sysroot=$HOME/modem/root -L$HOME/modem/root/lib -pthread" CFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" CXXFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" LIBS=-ldl ./configure --prefix=$HOME/modem/root
+
+libpng:
+./configure --includedir=$HOME/modem/root/include --host=mips --prefix=$HOME/modem/root CC=mips-linux-gcc LDFLAGS="-static --sysroot=$HOME/modem/root -L$HOME/modem/root/lib -pthread" CFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" CXXFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" LIBS=-ldl
+sed "s|-DPNGLIB_LIBNAME|-I$HOME/modem/root/include -DPNGLIB_LIBNAME|" -i Makefile
+libfreetype:
+https://downloads.sourceforge.net/project/freetype/freetype2/2.12.1/freetype-2.12.1.tar.gz?download
+./configure --without-harfbuzz --without-brotli --with-sysroot=$HOME/modem/root --host=mips --prefix=$HOME/modem/root CC=mips-linux-gcc LDFLAGS="-static --sysroot=$HOME/modem/root -L$HOME/modem/root/lib -pthread" CFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" CXXFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" LIBS=-ldl
+sed -i "s|/root/modem/root||" $HOME/modem/root/lib/*.la
+libgd:
+ ./configure --with-freetype --without-xpm --without-x --without-fontconfig --without-webp --without-tiff --without-jpeg --without-heif --with-png --with-sysroot=$HOME/modem/root --host=mips --prefix=$HOME/modem/root CC=mips-linux-gcc LDFLAGS="-static --sysroot=$HOME/modem/root -L$HOME/modem/root/lib -pthread" CFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" CXXFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" LIBS=-ldl
+ vnstat:
+ ./configure --host=mips --prefix=$HOME/modem/root CC=mips-linux-gcc LDFLAGS="-static --sysroot=$HOME/modem/root -L$HOME/modem/root/lib -pthread" CFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" CXXFLAGS="-static --sysroot=$HOME/modem/root -I$HOME/modem/root/include" LIBS="-ldl -lpng -lz"